include("shared.lua")
include("cl_hud.lua")
include("cl_menu.lua")
include("cl_msgstack.lua")
include("player_ext_shd.lua")

function GM:Initialize()
	GAMEMODE.state = STATE_WAIT
end

function GetRoundState() return GAMEMODE.round_state end

local function ReceiveRoundState(um)
   local o = GetRoundState()
   GAMEMODE.state = um:ReadChar()

   if o != GAMEMODE.round_state then
      RoundStateChange(o, GAMEMODE.state)
   end

   MsgN("Round state: " .. GAMEMODE.state)
end
usermessage.Hook("state", ReceiveRoundState)